package com.kt

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.jh.ios.forecast.R
import kotlinx.android.synthetic.main.activity_register.*
import kotlinx.android.synthetic.main.navigation_bar.*

/**
 * 注册
 */
class RegisterActivity:AppCompatActivity(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_register)
        titelW(this, window)
        init1()
        initEvent1()
    }

    private fun init1() {
        navigation_title.text = "注册账号"
        back_buton.visibility= View.VISIBLE
        back_buton.setOnClickListener(this)
        register_button.setOnClickListener(this)
        tv_huoquyanzhengma.setOnClickListener(this)

    }

    private fun initEvent1() {

    }

    override fun onClick(v: View?) {
            when(v){
                back_buton->{
                    finish()
                }
                register_button->{  //注册

                }
                tv_huoquyanzhengma->{  //获取验证码

                }
            }
    }
}